package your.rfgui.extgui.data.intf;

/**
 * Data of an item shown in a GUI components (e.g. tree node).
 * A data item either holds an transient label (e.g. label of a tree node) or represent a persistent
 * entity from database.
 */
public interface DataItem {

   /**
    * The display label for this item, e.g. used as label in the tree node
    */
   String getLabel();

   /**
    * Whether this data item is identical (equal) to the given data item
    */
   public boolean identical(DataItem other);
}
